﻿@model IEnumerable<BB.Apostas.Models.Competicao>
<h2>
    Lista de Competicoes</h2>
<p>
    @Html.ActionLink("Voltar", "Index")
</p>
<p>
    @Html.ActionLink("Nova Competicao", "CreateCompeticao")
</p>
<table>
    <tr>
    <th>
            @Html.DisplayNameFor(model => model.Id)
        </th>

        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
        <th>
        </th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
        <td>
                @Html.DisplayFor(modelItem => item.Id)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Name)
            </td>
            <td>
                @Html.ActionLink("Editar", "EditCompeticao", new { id = item.Id }) |
                @Html.ActionLink("Remover", "DeleteCompeticao", new { id = item.Id })
            </td>
        </tr>
    }
</table>
